package com.example.springboot.mapper.blog.mapper;

import com.example.springboot.entity.Blog;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;
import java.util.List;

/**
 * @param
 * @Description: 类描述
 * @Author: allan5945@qq.com
 * @Date: 2018/10/24
 * @return:
 * @throws:
 */
public interface BlogMapper {
    List<Blog> selectHotBlog(@Param("con") ArrayList<String> con);
    Blog selectBlog(@Param("id") Integer id);
    List<Blog> selectUserBlog(@Param("belongerId") Integer belongerId);
    Boolean delectBlog(@Param("id") Integer id,@Param("userid") Integer userid);
    Boolean addBlog(Blog blog);
    List<String> getHotTag();
    List<String> getTag(Integer userId);
}
